//模块方式 推荐
YAHOO.Zergling.create('test1',{
	creator:'llinzzi',
	debug:{out:true,profile:true},
	require:[],
		handler:function(){
		//private var here
		var YE = YAHOO.util.Event;
		var	YD = YAHOO.util.Ddom;
		var customVar;
		//event callback here 
		return {
			init:function(){
				this.console_log('int','dd',this);
			},
			onPageReady:function(_sender,_args){
				this.console_log('onPageReady');
				this.fire('onCustomEvent','arg1','arg2');
				this.fire('lala','hello');
			},
			onPageLoaded:function(){
				this.console_log('onPageLoaded');
			},
			onCustomEvent:function(_sender,_arg1,_arg2){
				this.console_log(_sender);
				this.console_log(_arg1);
				this.console_log(_arg2);
			},
			onFailure:function(){

			}

		};
	}
});


/*
//敏捷方式 特殊情况下使用
YAHOO.Zergling.Event.subscribe('onPageRender',function(){
		alert('min');
});
*/
